package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.pro.ProductionOrder;
import com.qidianit.mes.pro.vo.ProductionOrderMaterialWithUnit;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/20 - 14:31
 */
public interface ProductionOrderService {

    PageInfo<ProductionOrderMaterialWithUnit> queryProductionOrderListWithMultiConditionsAndPage(Integer pageNum,
                                                                           Integer pageSize,
                                                                           String productionOrderCode,
                                                                           String productionOrderName,
                                                                           Integer productionOrderSource,
                                                                           String materialCode,
                                                                           String materialName,
                                                                           String customerCode,
                                                                           Integer productionOrderType,
                                                                           String requestDate,
                                                                           Integer status);

    int addProduction(ProductionOrder productionOrder);

    ProductionOrder queryProductionOrderByCode(@Param("productionOrderCode") String productionOrderCode);
        /*
        编辑生产工单
         */
    int updateProductionOrder(ProductionOrder productionOrder);

    /*
    根据id删除
     */
    int deleteProductionOrderById(Long id);
}
